.class Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;
.super Landroid/widget/BaseAdapter;
.source "HomeMyselfTab.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/HomeMyselfTab;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MenuAdapter"
.end annotation


# instance fields
.field private imgRes:[I

.field final synthetic this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V
    .locals 1
    .parameter

    .prologue
    .line 126
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 127
    const/4 v0, 0x5

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    .line 132
    iput-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->imgRes:[I

    return-void

    .line 127
    :array_0
    .array-data 0x4
        0x57t 0x0t 0x2t 0x7ft
        0x52t 0x0t 0x2t 0x7ft
        0x5at 0x0t 0x2t 0x7ft
        0x55t 0x0t 0x2t 0x7ft
        0x58t 0x0t 0x2t 0x7ft
    .end array-data
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 136
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->access$0(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 141
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->access$0(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 146
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 151
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    iget-object v2, v2, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->factory:Landroid/view/LayoutInflater;

    const v3, 0x7f030027

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 152
    const v2, 0x7f0a0094

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 153
    .local v1, menuitem:Landroid/widget/TextView;
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->access$0(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/CharSequence;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 154
    const v2, 0x7f0a0093

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 155
    .local v0, headIcon:Landroid/widget/ImageView;
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$MenuAdapter;->imgRes:[I

    aget v2, v2, p1

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 156
    return-object p2
.end method
